<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 java.util.ArrayList,
                 com.scalar.forecast.commons.Constants,
                 com.scalar.forecast.forecastSetup.ForecastEntryField,
                 java.util.Calendar"%>
<%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld"  prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld"  prefix="nested"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="<%=chipTracContext%>/jsp/includes/scripts/validations.js">
</SCRIPT>
<SCRIPT language=JavaScript src="<%=chipTracContext%>/jsp/includes/scripts/functions.js">
</SCRIPT>
<script>
function onSubmit()
{
        var selectCategory

        var d     = new Date();
        var day   = d.getDate();
        var month = d.getMonth()+1;
        var year  = d.getFullYear();
        var hour  = d.getHours();
        var min   = d.getMinutes();
        var sec   = d.getSeconds();

        var defaultPrompt = day+"/"+month+"/"+year+":"+hour+":"+min+":"+sec;
        document.projectsReportForm.prompt3.value = defaultPrompt;

        document.projectsReportForm.prompt0.value = document.projectsReportForm.odmId.value;
        document.projectsReportForm.prompt1.value = document.projectsReportForm.productId.value;
        document.projectsReportForm.prompt2.value = document.projectsReportForm.salesPersonId.value;

        document.projectsReportForm.action = "<%=chipTracContext%>/jsp/report.jsp?nameReport=Forecast/Project_Report.rpt";

        document.projectsReportForm.submit();
}
</script>

<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginwidth="0" marginheight="0" >
<!-- Top Header Start-->
    <%
        String userTypeChiptrac = com.scalar.chiptrack.commons.Constants.USER_TYPE_CHIPTRAC + "";
    %>
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/header.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/extHeader.jsp" %>
    </logic:notEqual>
<!-- Top Header End-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><!--TBODY-->
  <TBODY>
  <TR>
    <TD vAlign=top width=180 background="<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif">
  <!-- Side Navigation start -->    
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
       <%@ include file="/jsp/marketing/marketing_report_menu.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/forecast/external_forecast_menu.jsp" %>
    </logic:notEqual>
 <!-- end of the side navigations -->
    <TD bgColor=#ffffff><IMG height=9
      src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
    <TD bgColor=#ffffff><IMG height=480
      src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=10></TD>
    <TD vAlign=top width="100%"><IMG height=1
      src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0> <BR>
<!-- from here your body starts -->
<html:form name="projectsReportForm" action="/projectsReport.do"  type="com.scalar.forecast.forecastReports.forms.ProjecstReportForm" scope="request">
<input type="hidden" name="prompt0">
<input type="hidden" name="prompt1">
<input type="hidden" name="prompt2">
<input type="hidden" name="prompt3">

      <TABLE width="85%" align=center border=0>
        <TBODY>
        <TR> <TD class=NArialW align=middle colSpan=5>Project Report</TD></TR> <TR>
          <TD colSpan=5>&nbsp;</TD></TR>
        <TR><TD colspan='5' id='errorMessagesId'><chiptrack:errors styleClass='NArialL' /></TD></TR>
        <TR><TD colspan='5' id='infoMessagesId'><chiptrack:info styleClass='NArialL' /></TD></TR>
        <TR><TD colspan='5' class="NArialL"><FONT id="errorsId"  color='FF0000'></FONT></TD></TR>
        <TR>
                <tr><td colsapn=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                  <tr>
                  <td width="25%"><font class="NArialL">End Customer:</font></td>
                  <td width="20%"><font class="NArialL">
                     <html:select property="odmId" styleClass="txfield">
                       <html:option value="0" >Select Any End Customer</html:option>
                       <html:options collection="endUserList" labelProperty="label" property="value"/>
                     </html:select>
                  </td>
                  <td width="10%">&nbsp;</td>
                  <td width="20%"><font class="NArialL">Product:</font></td>
                  <td width="25%"><font class="NArialL">
                      <html:select property="productId" styleClass="txfield">
                       <html:option value="-1" >Select Any Product</html:option>
                       <html:options collection="productsList" labelProperty="label" property="value"/>
                      </html:select>
                  </td>
                  </tr>
                   <tr><td colsapn=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                    <tr>
                          <td width="25%"><font class="NArialL">&nbsp;Sales Person:</font></td>
                          <td width="20%"><font class="NArialL">
                              <html:select property="salesPersonId" styleClass="txfield">
                               <html:option value="0" >Select Any Sales Person</html:option>
                               <html:options collection="salesRepList" labelProperty="label" property="value"/>
                              </html:select>
                          </td>
                          <td width="10%">&nbsp;</td>
                          <td width="20%">&nbsp;</td>
                          <td width="25%">&nbsp;</td>
                    </tr>

              <TR><TD bgColor=#ffffff><IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD></TR>
              <TR>
                <TD width="100%" colSpan=5 align="center">
                    <A href="javascript:onSubmit();">
                    <IMG onmouseover="window.status='Click to generate Forecast Report';return true" title="Click to generate Forecast Report" onmouseout="window.status='';return true" height=17 src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width=53 border=0></A>&nbsp;&nbsp;&nbsp;&nbsp;
                    <A href="javascript:document.projectsReportForm.reset();"><IMG onmouseover="window.status='Click to Reset';return true" title="Click here to Reset" onmouseout="window.status='';return true" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" border=0 width="53" height="17"></A>
                </TD>
              </TR>
            </TBODY></TABLE></TD></TR>
</html:form>
        <%--<TR><TD><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=10></TD></TR>--%>
		 </TBODY></TABLE></TD>

<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>
